package MyOop04;

import Lian02.Array;

import java.util.Scanner;

/**
 * 手机号屏蔽
 */
public class StringDemo007 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的手机号码");
        String number = scanner.next();
         String number1 = number.substring(0,3);
         String end = number.substring(7);
        String result =number1 + "****"+end;
        System.out.println(result);
    }
}
